﻿
<MudPopoverProvider></MudPopoverProvider>

<MudTimePicker @ref="_picker"
			   @bind-Time="@Time"
			   OpenTo="@OpenTo"
			   AmPm="AmPm"
			   TimeEditMode="TimeEditMode" />

@code {
	private MudTimePicker _picker;

	[Parameter] public OpenTo OpenTo { get; set; } = OpenTo.Hours;
	[Parameter] public TimeEditMode TimeEditMode { get; set; } = TimeEditMode.Normal;
	[Parameter] public TimeSpan? Time { get; set; }
	[Parameter] public Boolean AmPm { get; set; }



	public async Task Open() => await InvokeAsync(() => _picker.Open());
	public async Task Close() => await InvokeAsync(() => _picker.Close());
}